package com.example.service;

import com.example.entity.DepartmentsEntity;
import com.example.utils.ReturnT;

import java.util.List;
import java.util.Map;

public interface DepartmentsService {

    Object insert(DepartmentsEntity departmentsEntity);

    Object delete(int id);

    Object update(DepartmentsEntity departmentsEntity);

    DepartmentsEntity load(int id);

    Map<String,Object> pageList(int offset, int pagesize);

    ReturnT<List<DepartmentsEntity>> selectByDepartmentCode(String departmentCode);
}
